//
//  Player.h
//  OurRelaxDemo
//
//  Created by 于宾尧 on 15/6/30.
//  Copyright (c) 2015年 于宾尧. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <STKAudioPlayer.h>
#import <UIKit/UIKit.h>
#import "UrlModel.h"
#import "TagHandle.h"

@interface Player : NSObject

+(instancetype)shareDataHandle;

@property (nonatomic,retain) STKAudioPlayer *player;
@property (nonatomic,assign) NSInteger playingIndex;

#pragma 改
@property (nonatomic, assign) NSInteger oldIndex;

@property (nonatomic, retain) NSTimer *timer;

//radio
@property (nonatomic,retain)UrlModel *urlMdl;

@property (nonatomic, retain) NSMutableArray *currentUrlArray;
@property (nonatomic, retain) NSMutableArray *playUrlArray;
//for Radio
@property (nonatomic,retain)NSMutableArray *urlArray;

@property (nonatomic,copy) NSString *urlPlayStr;

+(void)Play:(NSMutableArray *)playUrlArray;
+(void)nextPlayRadio;


-(void)PlayForArray;
-(void)NextPlay;
-(void)lastPlay;
-(void)randomPlay;
-(void)orderPlay;
-(void)roundPlay;

@end
